<template>
    <div class="popup publish" id="publish">
        <f7-view navbar-fixed>
            <f7-pages>
                <f7-page name="publish">
                    <div class="operation">
                        <f7-grid>
                            <f7-col width="25" class="item">
                                    <f7-link icon-fa="heart-o" text="心情" href="/publish/feelingEdit/"></f7-link>
                            </f7-col>
                            <f7-col width="25" class="item">
                                <f7-link icon-fa="fire" text="新鲜事" href="/publish/newsEdit/"></f7-link>
                            </f7-col>
                            <f7-col width="25" class="item">
                                <f7-link icon-fa="file-o" text="文章" href="/publish/articleEdit/"></f7-link>
                            </f7-col>
                            <f7-col width="25" class="item">
                                <f7-link icon-fa="at" text="话题" href="/publish/newsEdit/"></f7-link>
                            </f7-col>
                        </f7-grid>
                        <f7-link icon-fa="close" close-popup class="btn-close"></f7-link>
                    </div>
                </f7-page>
            </f7-pages>
        </f7-view>
    </div>
</template>

<style lang="scss">
@import "../../assets/css/common.scss";
.publish {
    background: none;

    .operation {
        position: absolute;
        width: 100%;
        bottom: 30px;

        .row {
            margin-bottom: 80px;
        }
    }

    .item {
        a {
            display: block;
            width: 60px;
            margin: 0 auto;
            text-align: center;
            color: #333;
        }

        .icon {
            display: block;
            width: 60px;
            height: 60px;
            line-height: 60px;
            margin-bottom: 5px;
            text-align: center;
            border-radius: 50%;
            color: #fff;
        }

        &:nth-of-type(1){
            .icon {
                background: #ef2faa;
            }
        }

        &:nth-of-type(2){
            .icon {
                background: #1bbf74;
            }
        }

        &:nth-of-type(3){
            .icon {
                background: #1dc0ff;
            }
        }

        &:nth-of-type(4){
            .icon {
                background: #e86d6d;
            }
        }
    }

    .btn-close {
        display: block;
        width: 30px;
        margin: 0 auto;

        .icon {
            font-size: 30px;
            color: #999;
        }
    }
}
</style>
